<?php

/**
 * acreditacion module configuration.
 *
 * @package    BecArTe
 * @subpackage acreditacion
 * @author     Your name here
 * @version    SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class acreditacionGeneratorConfiguration extends BaseAcreditacionGeneratorConfiguration
{
    public function getFilterDefaults()
    { 
      $user = sfContext::getInstance()->getUser();
      if($user->hasCredential('atPublico') ) {
        return array(
                 'valido' => 0,
                 'alumno' => array(
                              'sede_id' => $user->getSedeId()
                             )
        );
      } else {
        return array('valido' => 0);
      }
    }
}
